This is problem-with-[cell-edit:inView:editor:delegate:event:] in view mode; [Up]
Date: Sun 25-Sep-1991 00:08:23 From: larry@spike.rprc.washington.edu (Larry Shupe) Subject: problem with [cell edit:inView:editor:delegate:event:] I'm trying to use the edit:inView... Cell method to edit a cell in an NXBrowser, but I can't get it to work. Does anyone have example code for this? I've tried variations on the following without success. - editName:sender // Invoked as the doubleAction of an NXBrowser. { NXRect rect; id matrix = [sender matrixInColumn:0]; id cell = [matrix selectedCell]; id edit = [Text new]; [matrix getCellFrame:&rect at:[matrix selectedRow] :0]; [cell edit:&rect inView:matrix editor:edit delegate:self event:[NXApp lastMouseDownEvent]]; [edit free]; return self; } Things I've checked for: 1) The cell is of type NX_TEXTCELL. 2) [NXApp lastMouseDownEvent] is returning the last mouse down event. 3) The rect is the right size and is in the right position. Many thanks, Larry Shupe larry@spike.rprc.washington.edu
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.